package com.work.chat.custom.server.config.model;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BasePage implements Serializable {

    @NotNull(message = "目标页参数未传")
    @Min(value = 1,message = "目标页参数必须大于0")
    private Integer page;

    @NotNull(message = "每页条目数未填写")
    @Min(value = 1, message = "每页条目数必须大于等于1")
    private Integer pageSize;
}
